filechooser: Fix a crash when removing files
authorBenjamin Otte <otte@redhat.com>
Sun, 2 May 2010 12:32:18 +0000 (14:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 2 May 2010 12:34:43 +0000 (14:34 +0200)
commitb08a6750dc0e50121a246ba2b2c3706d1cf750d1
tree8c77336577df5bd7eb08766b55798b6370fd8329
parent4cf9ac5b4da4e5320536feb97c1553a87d5c60f5
filechooser: Fix a crash when removing files

The file removal code was not properly clearing the file=>array index
cache, so later lookups into that cache would return invalid array
indexes.

The easiest way to reproduce it is to create a directory with two files
and deleting both of them.

Reported-by: Javier Jardón <jjardon@gnome.org>
gtk/gtkfilesystemmodel.c